WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::GraphSearch Class Reference

Breadth-first search of the shortest path of factors between two nodes of the factor graph. More...

#include <core/utils/graph_search.h>

Public Member Functions

 GraphSearch ()
 Default constructor. More...
 
 ~GraphSearch ()
 Destructor. More...
 
FactorBasePtrList computeShortestPath (NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
 Computes the shortest path of factors between two nodes, up to a graph distance (0: unlimited). Empty if not found. More...
 
std::set< NodeStateBlocksPtr > getNeighborFrames (const std::set< NodeStateBlocksPtr > &nodes)
 Returns the not visited nodes sharing a factor with some nodes, storing their parents. More...
 

Static Public Member Functions

static FactorBasePtrList shortestPath (NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
 Computes the shortest path of factors between two nodes (see computeShortestPath()) More...
 

Detailed Description

Breadth-first search of the shortest path of factors between two nodes of the factor graph.

Constructor & Destructor Documentation

◆ GraphSearch()

GraphSearch::GraphSearch ( )

Default constructor.

◆ ~GraphSearch()

GraphSearch::~GraphSearch ( )

Destructor.

Member Function Documentation

◆ computeShortestPath()

FactorBasePtrList GraphSearch::computeShortestPath ( NodeStateBlocksPtr  node1,
NodeStateBlocksPtr  node2,
const unsigned int  max_graph_dist = 0 
)

Computes the shortest path of factors between two nodes, up to a graph distance (0: unlimited). Empty if not found.

◆ getNeighborFrames()

std::set< NodeStateBlocksPtr > GraphSearch::getNeighborFrames ( const std::set< NodeStateBlocksPtr > &  nodes)

Returns the not visited nodes sharing a factor with some nodes, storing their parents.

◆ shortestPath()

static FactorBasePtrList wolf::GraphSearch::shortestPath ( NodeStateBlocksPtr  node1,
NodeStateBlocksPtr  node2,
const unsigned int  max_graph_dist = 0 
)
inlinestatic

Computes the shortest path of factors between two nodes (see computeShortestPath())


The documentation for this class was generated from the following files: